const {
    glob,
    globSync,
    globStream,
    globStreamSync,
    Glob,
  } = require('glob')
 

const g3 = new Glob('**/src/pages/dataBoard/**', {  ignore: "node_modules/**", withFileTypes: true })
g3.stream().on('data', path => {
    if (path.isDirectory()) {
        const pathFullpath = path.fullpath()
        const filterMap = path.readdirSync().map(e => e.name).filter(el => el.endsWith('.tsx') || el.endsWith('.jsx') || el.endsWith('.js'));
        
        if (Array.isArray(filterMap) && filterMap.length > 0) {
            filterMap.map(nameUrl => {
                const fullStr= pathFullpath + nameUrl;
                console.log(fullStr);
            })
        }
    }
})
